<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div class="container header">
    <div class="span5">
        <div class="logo">
            <a href="./网上商城/index.htm">
                <img src="./image/r___________renleipic_01/logo.gif" alt="NIIT"/>
            </a>
        </div>
    </div>
    <div class="span9">
        <div class="headerAd">
            <img src="./image/header.jpg" width="320" height="50" alt="正品保障" title="正品保障"/>
        </div>
    </div>
    <div class="span10 last">
        <div class="topNav clearfix">
            <ul>
                <li id="headerLogin" class="headerLogin" style="display: list-item;">
                    <a href="/toLogin" th:if="${session.USER==null or session.USER.username==''}">登录  |</a>
                    <span th:if="${session.USER!=null and session.USER.username!=''}" th:text="${'你好,'+session.USER.username}">   |</span>
                </li>
                <li id="headerRegister" class="headerRegister" style="display: list-item;">
                    <a href="/toRegister">注册</a>|
                </li>
                <li id="headerUsername" class="headerUsername"></li>
                <li id="headerLogout" class="headerLogout">
                    <a href="/logout">[退出]</a>|
                </li>
                <li> <a>购物指南</a> | </li>
                <li> <a>关于我们</a></li>
            </ul>
        </div>
        <div class="cart">
            <a  href="goCart">
                <span>购物车</span>
            </a>
        </div>
        <div class="phone">
            客服热线:
            <strong>88888/88888888</strong>
        </div>
    </div>
    <div class="span24">
        <ul class="mainNav">
            <li> <a href="/">首页</a> | </li>
            <li th:each="m : ${session.MENU_LIST}">
                <a th:href="${'/goCategory?cid='+m.cid+'&amp;currentPage=1'}+'&amp;csid=null'" th:text="${m.cname}"></a> |
            </li>
        </ul>
    </div>
</div><!--header部分结束-->

</body>
</html>